<?php
declare(strict_types=1);
/**
 * 获取公共配置
 * @method static get(array|string $key, mixed $default = null): mixed
 * @method static has(string $key): bool
 * @method static getMany(array $keys): array
 * @method static set(array|string $key, mixed $value = null): void
 * @method static prepend(string $key, mixed $value): void
 * @method static push(string $key, mixed $value): void
 * @method static all(): array
 * @method static offsetExists($key): bool
 * @method static offsetGet($key): mixed
 * @method static offsetSet($key, mixed $value): void
 * @method static offsetUnset($key): void
 */
class Config
{
    /**
     * @param string $method
     * @param array $args
     * @return void
     * @throws Exception
     */
    public static function __callStatic(string $method, array $args)
    {
        $object = App::make(Config\Repository::class);
        return $object->$method(...$args);
    }
}
